var IScroll = require('../libs/iscroll-probe')
var template = require('../libs/template-web')
var listTpl = require('../../templates/pos-tpl.string')

module.exports = {
  doScroll: function () {
    new IScroll('.m-index section', {

    })
  },
  renderTpl: function (cb) {
    $.ajax({
      url: '/vip/list.php',
      type: 'get',
      data: {
        pageNo: 1,
        pageSize: 15
      },
      success: function (data) {
        // console.log(data);
        cb(template.render(listTpl, data.content.data.page))
      }
    })
  }
}
